//
//  SEDepartmentModel.swift
//  SmartEyeForPatient
//
//  Created by QDSG on 2021/4/12.
//

import HandyJSON

struct SEDepartmentModel: HandyJSON {
    var pageNum: Int = 0
    var pageSize: Int = 0
    var total: Int = 0
    var totalPage: Int = 0
    var list: [SEDepartmentItem]?
}

struct SEDepartmentItem: HandyJSON {
    var id: String?
    var pid: String?
    
    var departmentId: String?   // 科室id
    var departmentName: String? // 科室名称
    
    mutating func mapping(mapper: HelpingMapper) {
        mapper <<<
            self.departmentId <-- "key"
        
        mapper <<<
            self.departmentName <-- "value"
    }
}
